package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ProcessRoute;
import com.nbsaas.boot.manufacturing.api.domain.request.ProcessRouteRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 工艺路线请求对象转换成实体对象
*/

public class ProcessRouteEntityConvert  implements Converter<ProcessRoute, ProcessRouteRequest> {

    @Override
    public ProcessRoute convert(ProcessRouteRequest source) {
        ProcessRoute result = new ProcessRoute();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

